Skip to content

JavaScript Challenge Feature for Application Gateway Firewall Policy Settings #24425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 25, 2024

Conversation

Shawnli222
Copy link
Contributor

@Shawnli222 Shawnli222 commented Mar 21, 2024

Description

Allow customers to add expiration time for JSChallenge Cookie for application gateway firewall policy settings. This feature is built on the existing Firewall PolicySettings framework. A new field JsChallengeCookieExpirationInMins is added to provide JavaScript Challenge Feature.

Swagger PR link: Azure/azure-rest-api-specs#28011

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • For SDK-based development mode, update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • For autorest-based development mode, include the changelog in the PR description.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copy link

azure-client-tools-bot-prd bot commented Mar 21, 2024

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.ApplicationInsights
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Batch
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.CognitiveServices
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Compute
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.ContainerRegistry
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.CosmosDB
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.DataLakeStore
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Dns
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.EventHub
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Az.KeyVault
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Test
⚠️ - Linux
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 22.09 % Test coverage for the module cannot be lower than 50%.
⚠️ - MacOS
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 22.09% Test coverage for the module cannot be lower than 50%.
⚠️PowerShell Core - Windows
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 22.09% Test coverage for the module cannot be lower than 50%.
⚠️Windows PowerShell - Windows
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 22.09% Test coverage for the module cannot be lower than 50%.
️✔️Az.ManagedServiceIdentity
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Az.Monitor
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Test
⚠️ - Linux
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 18.18 % Test coverage for the module cannot be lower than 50%.
⚠️ - MacOS
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 18.18% Test coverage for the module cannot be lower than 50%.
⚠️PowerShell Core - Windows
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 18.18% Test coverage for the module cannot be lower than 50%.
⚠️Windows PowerShell - Windows
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 18.18% Test coverage for the module cannot be lower than 50%.
️✔️Az.NetAppFiles
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Az.Network
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Signature Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Help Example Check
⚠️PowerShell Core - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ New-AzApplicationGatewayFirewallPolicySetting 1 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -State $enabledState is a null-valued parameter value. -State Assign value for $enabledState.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 1 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -Mode $enabledMode is a null-valued parameter value. -Mode Assign value for $enabledMode.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 1 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxFileUploadInMb $fileUploadLimitInMb is a null-valued parameter value. -MaxFileUploadInMb Assign value for $fileUploadLimitInMb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 1 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxRequestBodySizeInKb $maxRequestBodySizeInKb is a null-valued parameter value. -MaxRequestBodySizeInKb Assign value for $maxRequestBodySizeInKb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -State $enabledState is a null-valued parameter value. -State Assign value for $enabledState.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -Mode $enabledMode is a null-valued parameter value. -Mode Assign value for $enabledMode.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxFileUploadInMb $fileUploadLimitInMb is a null-valued parameter value. -MaxFileUploadInMb Assign value for $fileUploadLimitInMb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxRequestBodySizeInKb $maxRequestBodySizeInKb is a null-valued parameter value. -MaxRequestBodySizeInKb Assign value for $maxRequestBodySizeInKb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -LogScrubbing $logScrubbingRuleConfig is a null-valued parameter value. -LogScrubbing Assign value for $logScrubbingRuleConfig.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 3 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -State $enabledState is a null-valued parameter value. -State Assign value for $enabledState.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 3 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -Mode $enabledMode is a null-valued parameter value. -Mode Assign value for $enabledMode.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 3 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxFileUploadInMb $fileUploadLimitInMb is a null-valued parameter value. -MaxFileUploadInMb Assign value for $fileUploadLimitInMb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 3 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxRequestBodySizeInKb $maxRequestBodySizeInKb is a null-valued parameter value. -MaxRequestBodySizeInKb Assign value for $maxRequestBodySizeInKb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -State $enabledState is a null-valued parameter value. -State Assign value for $enabledState.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -Mode $enabledMode is a null-valued parameter value. -Mode Assign value for $enabledMode.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxFileUploadInMb $fileUploadLimitInMb is a null-valued parameter value. -MaxFileUploadInMb Assign value for $fileUploadLimitInMb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxRequestBodySizeInKb $maxRequestBodySizeInKb is a null-valued parameter value. -MaxRequestBodySizeInKb Assign value for $maxRequestBodySizeInKb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -JSChallengeCookieExpirationInMins $jsChallengeCookieExpirationInMins is a null-valued parameter value. -JSChallengeCookieExpirationInMins Assign value for $jsChallengeCookieExpirationInMins.
⚠️Windows PowerShell - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
⚠️ New-AzApplicationGatewayFirewallPolicySetting 1 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -State $enabledState is a null-valued parameter value. -State Assign value for $enabledState.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 1 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -Mode $enabledMode is a null-valued parameter value. -Mode Assign value for $enabledMode.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 1 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxFileUploadInMb $fileUploadLimitInMb is a null-valued parameter value. -MaxFileUploadInMb Assign value for $fileUploadLimitInMb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 1 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxRequestBodySizeInKb $maxRequestBodySizeInKb is a null-valued parameter value. -MaxRequestBodySizeInKb Assign value for $maxRequestBodySizeInKb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -State $enabledState is a null-valued parameter value. -State Assign value for $enabledState.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -Mode $enabledMode is a null-valued parameter value. -Mode Assign value for $enabledMode.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxFileUploadInMb $fileUploadLimitInMb is a null-valued parameter value. -MaxFileUploadInMb Assign value for $fileUploadLimitInMb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxRequestBodySizeInKb $maxRequestBodySizeInKb is a null-valued parameter value. -MaxRequestBodySizeInKb Assign value for $maxRequestBodySizeInKb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 2 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -LogScrubbing $logScrubbingRuleConfig is a null-valued parameter value. -LogScrubbing Assign value for $logScrubbingRuleConfig.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 3 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -State $enabledState is a null-valued parameter value. -State Assign value for $enabledState.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 3 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -Mode $enabledMode is a null-valued parameter value. -Mode Assign value for $enabledMode.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 3 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxFileUploadInMb $fileUploadLimitInMb is a null-valued parameter value. -MaxFileUploadInMb Assign value for $fileUploadLimitInMb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 3 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxRequestBodySizeInKb $maxRequestBodySizeInKb is a null-valued parameter value. -MaxRequestBodySizeInKb Assign value for $maxRequestBodySizeInKb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -State $enabledState is a null-valued parameter value. -State Assign value for $enabledState.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -Mode $enabledMode is a null-valued parameter value. -Mode Assign value for $enabledMode.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxFileUploadInMb $fileUploadLimitInMb is a null-valued parameter value. -MaxFileUploadInMb Assign value for $fileUploadLimitInMb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -MaxRequestBodySizeInKb $maxRequestBodySizeInKb is a null-valued parameter value. -MaxRequestBodySizeInKb Assign value for $maxRequestBodySizeInKb.
⚠️ New-AzApplicationGatewayFirewallPolicySetting 4 1 Unassigned_Variable New-AzApplicationGatewayFirewallPolicySetting -JSChallengeCookieExpirationInMins $jsChallengeCookieExpirationInMins is a null-valued parameter value. -JSChallengeCookieExpirationInMins Assign value for $jsChallengeCookieExpirationInMins.
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️File Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Test
⚠️ - Linux
Type Title Current Coverage Last Coverage Description
⚠️ Test Coverage Less Than 80% 78.58 % 84.35% Test coverage cannot be lower than the number of the last release.
⚠️ - MacOS
Type Title Current Coverage Last Coverage Description
⚠️ Test Coverage Less Than 80% 78.58% 84.35% Test coverage cannot be lower than the number of the last release.
⚠️PowerShell Core - Windows
Type Title Current Coverage Last Coverage Description
⚠️ Test Coverage Less Than 80% 78.58% 84.35% Test coverage cannot be lower than the number of the last release.
⚠️Windows PowerShell - Windows
Type Title Current Coverage Last Coverage Description
⚠️ Test Coverage Less Than 80% 78.58% 84.35% Test coverage cannot be lower than the number of the last release.
️✔️Az.OperationalInsights
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.PrivateDns
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.RecoveryServices
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Resources
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Security
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.ServiceBus
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.SignalR
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Sql
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Storage
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Websites
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️ - Linux
️✔️ - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows

@Shawnli222 Shawnli222 changed the title JS Challenge Inspection Limit Feature for Application Gateway Firewall Policy Settings Apr 22, 2024
@Shawnli222 Shawnli222 changed the title Inspection Limit Feature for Application Gateway Firewall Policy Settings JSChallenge Feature for Application Gateway Firewall Policy Settings Apr 22, 2024
@Shawnli222 Shawnli222 changed the title JSChallenge Feature for Application Gateway Firewall Policy Settings JavaScript Challenge Feature for Application Gateway Firewall Policy Settings Apr 22, 2024
@@ -446,3 +446,4 @@
"Az.Network","Microsoft.Azure.Commands.Network.UpdateAzureRmP2SVpnGatewayCommand","Update-AzP2sVpnGateway","1","8700","Parameter set 'ByP2SVpnGatewayResourceIdNoVpnServerConfigurationUpdate', 'ByP2SVpnGatewayResourceIdByVpnServerConfigurationObject' of cmdlet 'Update-AzP2sVpnGateway' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set."
"Az.Network","Microsoft.Azure.Commands.Network.Bastion.NewAzBastionCommand","New-AzBastion","1","8410","Parameter EnableKerberos of cmdlet New-AzBastion does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
"Az.Network","Microsoft.Azure.Commands.Network.Bastion.SetAzBastionCommand","Set-AzBastion","1","8410","Parameter EnableKerberos of cmdlet Set-AzBastion does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
"Az.Network","Microsoft.Azure.Commands.Network.NewAzureApplicationGatewayFirewallPolicySettingCommand","New-AzApplicationGatewayFirewallPolicySetting","1","8410","Parameter JSChallengeCookieExpirationInMins of cmdlet New-AzApplicationGatewayFirewallPolicySetting does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shawnli222, can you rename the parameter using a singular noun instead of suppressing the issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to make it the same as the swagger PR so it had to be like this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the swagger link: Azure/azure-rest-api-specs#28011

Copy link

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

@YanaXu YanaXu merged commit c6c64ab into Azure:release-network-2023-11-01 Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants